﻿@model DataMongo.Entities.Category
@{
    ViewBag.Title = "CategoryAdd";
}

<div class="alert alert-info alert-dismissable">
    Edit Category (+)
</div>
<div id="page-wrapper">

    <div class="row">
        <div class="col-lg-6">

            @using (Html.BeginForm("CategoryEdit", "SuperAdmin", FormMethod.Post, new { enctype = "multipart/form-data" }))
            {
                @Html.HiddenFor(x=>x.IsActive)
                @Html.HiddenFor(x=>x.CategoryId)

                @Html.AntiForgeryToken()
                @Html.ValidationSummary(true)

                <div class="form-group">
                    <label>Edit</label>
                    @Html.TextBoxFor(m => m.ShortDescription, new { @class = "form-control" })

                </div>

                <div class="form-group">
                    <label>Full Description</label>
                    @Html.TextBoxFor(m => m.FullDescription, new { @class = "form-control" })
                </div>

                <div class="form-group">
                    <label>Tag</label>
                    @Html.TextBoxFor(m => m.Tag, new { @class = "form-control" })
                </div>
                      <div class="form-group">
                  <label>Parent Category</label>
                  @Html.DropDownListFor(m => m.ParentId,Model.CategoryList, new { @class = "form-control" })
              </div>
                <button type="submit" class="btn btn-default">Save</button>
                          @Html.ActionLink("Back To List", "Category", "SuperAdmin", "",new { @class = "btn btn-info" })

            }

        </div>

    </div><!-- /.row -->

</div>